<!DOCTYPE html>
<html lang="en">
<head>
  <title>人事管理系统 ——后台管理</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="pragma" content="no-cache" />
  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="expires" content="0" />
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
  <meta http-equiv="description" content="This is my page" />
  <link href="fkjava.ico" rel="shortcut icon" type="image/x-icon" />

</head>
<body id="content">

<script type="text/javascript">
  $(function(){
    console.log(1111);
    let noticeId = localStorage.getItem('noticeId');
    getNotice();
    function getNotice(){
      $.ajax({
        url:"/hrm/notice/getNoticeById",
        data:{"id":noticeId},
        type:"POST",
        dataType:"JSON",
        success:function(res){
          if(res){
            let html = '<center><h1>'+res.title+'</h1></center><br/>'+res.content;
            $("#content").html(html);
          }
        }
      });
    }

    function getUrlParant(paramName){
      if(!paramName){
        return null;
      }
      var reg = new RegExp("(^|&)" + paramName + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
      var r = window.location.search.substr(1).match(reg); //匹配目标参数
      if (r != null){
        return unescape(r[2]);
      }
      return null; //返回参数值
    }
  });



</script>
</body>
</html>